class Comment < ActiveRecord::Base
  belongs_to :post
  belongs_to :user
  belongs_to :advertisment
  belongs_to :event
  has_many :child_comments, :class_name => "Comment", :foreign_key => "comment_id"
  belongs_to :parent_comment, :class_name => "Comment", :foreign_key => "comment_id" 
end
